package com.lifa.dao;

import com.lifa.entity.Huiyuan;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HuiYuanDao {
    /**
     * 查询全部会员
     * @return
     */
    public List<Huiyuan> chax();

    /**
     * 获取总跳数
     */
    public long mohcahx(@Param("huiyuan_Name") String huiyuan_Name);

    /**
     * 分页，模糊查询
     */
    public List<Huiyuan> fenyemohchax(@Param("huiyuan_Name") String huiyuan_Name, @Param("offset") int offset, @Param("limit") int limit);

    //添加
    public int tianjia(Huiyuan huiyuan);

    //删除
    public int sc(int huiyuan_Id);

    //修改
    public int xgai(Huiyuan huiyuan);

    //根据id修改
    public Huiyuan xgaiid(int huiyuan_Id);

    //根据和会员积分修改
    public int jifexgai(Huiyuan huiyuan);

    public int xiugaijine(@Param("huiyuan_Jifen") int huiyuan_Jifen,@Param("huiyuan_Id") int huiyuan_Id);
}
